import request from '@/utils/request';

export async function getDetail(params) {
  return request(`/osApi/accuAddDet/accuAddDetInfo`, {
    method: 'POST',
    body: params,
  });
}
export async function getDictData(params) {
  return request(`/osApi/accuAddDet/getAccuAddDetDict`, {
    method: 'POST',
    body: params,
  });
}
export async function getInsInfor(params) {
  return request(`/osApi/accuAddDet/getAccuAddDetInfoNew`, {
    method: 'POST',
    body: params,
  });
}
export async function updateInsData(params) {
  return request(`/osApi/accuAddDet/updateAccuAddDet`, {
    method: 'POST',
    body: params,
  });
}
export async function getSingleData(params) {
  return request(`/csApi/custAccuAcco/get`, {
    method: 'POST',
    body: params,
  });
}
export async function getSuppList(params) {
  return request(`/osApi/accuAddDet/checkNoSuppAccoList`, {
    method: 'POST',
    body: params,
  });
}
export async function getDictList(params) {
  return request(`/osApi/accuAddDet/dictList`, {
    method: 'POST',
    body: params,
  });
}
export async function getAddEmpAccuList(params) {
  return request(`/osApi/accuAddDet/pageListAccuAdd`, {
    method: 'POST',
    body: params,
  });
}
export async function getAddEmpAccuProList(params) {
  return request(`/osApi/problem/accu/pageList`, {
    method: 'POST',
    body: params,
  });
}

export async function changeArea(params) {
  return request(`/osApi/mdm/nmArea/queryNmArea`, {
    method: 'POST',
    body: params,
  });
}

export async function bigApply(params) {
  return request(`/osApi/accuAddDet/onLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function singleApply(params) {
  return request(`/osApi/accuAddDet/onLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function onLineDecl(params) {
  return request(`/osApi/accuAddDet/syncAccuAddOnLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function offBigApply(params) {
  return request(`/osApi/accuAddDet/syncAccuAddUnderLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function offSingleApply(params) {
  return request(`/osApi/accuAddDet/syncAccuAddUnderLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function underLineDecl(params) {
  return request(`/osApi/accuAddDet/syncAccuAddUnderLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function signProcanel(params) {
  return request(`/osApi/accuAddDet/signProbFlag`, {
    method: 'POST',
    body: params,
  });
}

export async function handleOkPro(params) {
  return request(`/osApi/problem/accu/signProbFlag`, {
    method: 'POST',
    body: params,
  });
}

export async function handleOkSuc(params) {
  return request(`/osApi/accuAddDet/completeDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function handleOkFail(params) {
  return request(`/osApi/accuAddDet/declFail`, {
    method: 'POST',
    body: params,
  });
}

export async function cancleApply(params) {
  return request(`/osApi/accuAddDet/cancelDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function remarkOk(params) {
  return request(`/osApi/accuAddDet/addAccuAddRemark`, {
    method: 'POST',
    body: params,
  });
}

export async function getRemarkData(params) {
  return request(`/osApi/accuAddDet/listAccuAddRemark`, {
    method: 'POST',
    body: params,
  });
}

export async function addRemarkData(params) {
  return request(`/osApi/accuAddDet/addAccuAddRemark`, {
    method: 'POST',
    body: params,
  });
}

export async function getDeclList(params) {
  return request(`/osApi/accuAddDet/queryDeclDetAccuAddTemplate`, {
    method: 'POST',
    body: params,
  });
}
export async function getProgress(params) {
  return request(`/osApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function cancelProbFlag(params) {
  return request(`/osApi/problem/accu/cancelProbFlag`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function insertProbFdbk(params) {
  return request(`/osApi/problem/accu/insertProbFdbk`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function problemGet(params) {
  return request(`/osApi/problem/accu/get`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function bmUploadFile(params) {
  return request(`/osApi/accuAddDet/accuAddBatchEdit`, {
    method: 'POST',
    body: params,
  });
}

export async function pUploadFile(params) {
  return request(`/osApi/accuAddDet/accuAddImport`, {
    method: 'POST',
    body: params,
  });
}

// 公积金增员批量标记申报
export async function accuImportAddFile(params) {
  return request(`/osApi/accuAddDet/importAccuAddTabDecl`, {
    method: 'POST',
    body: params,
  });
}

// 公积金减员批量标记申报
export async function accuImportReduceFile(params) {
  return request(`/osApi/accuDeduDet/importAccuDeduTabDecl`, {
    method: 'POST',
    body: params,
  });
}

